<%--
  Created by IntelliJ IDEA.
  User: 张乐
  Date: 2020/4/10
  Time: 12:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示页面</title>
</head>
<body>
<form action="#" method="post">
    <table>
        <tr>
            <td>id</td>
            <td>姓名</td>
            <td>金额</td>
        </tr>
        <c:forEach var="f" items="${list}">
        <tr>
            <td>${f.cid}</td>
            <td>${f.name}</td>
            <td>${f.money}</td>
            <td>
                <a href="${pageContext.request.contextPath}/account/delete/${f.cid}">删除</a>
                <a href="${pageContext.request.contextPath}/account/findOne?id=${f.cid}">修改</a>
            </td>
        </tr>
        </c:forEach>
        <tr>
            <td>
                <a href="${pageContext.request.contextPath}/account/toinsert">添加</a>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
